package com.taofuxn.yycreazy.ui.view;

import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.widget.SwipeRefreshLayout;
import android.util.AttributeSet;
import android.view.View;

/**
 * Created by wanghuafu on 16/9/17.
 */
@CoordinatorLayout.DefaultBehavior(TaofuSwipeReflashLayout.Behavior.class)
public class TaofuSwipeReflashLayout extends SwipeRefreshLayout {
    public TaofuSwipeReflashLayout(Context context) {
        super(context);
    }

    public TaofuSwipeReflashLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public class Behavior extends CoordinatorLayout.Behavior<TaofuSwipeReflashLayout>{


        @Override
        public boolean layoutDependsOn(CoordinatorLayout parent, TaofuSwipeReflashLayout child, View dependency) {
            return super.layoutDependsOn(parent, child, dependency);
        }

        @Override
        public boolean onDependentViewChanged(CoordinatorLayout parent, TaofuSwipeReflashLayout child, View dependency) {
            return super.onDependentViewChanged(parent, child, dependency);
        }
    }
}
